package org.grottarossa.driver;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DriverBuilder
{
	public static ECMBuilderTemplate build()
	{
		ApplicationContext context = new ClassPathXmlApplicationContext("driver-builder-context.xml");
		DriverBuilderService builder = (DriverBuilderService) context.getBean(DriverBuilderService.class);
		ECMBuilderTemplate ecmbuilder = builder.getBuilder();
		return ecmbuilder;
	}
}